export function changeKeyToValue(arrayList, keyMap) {
	let result = [];
	for (let i = 0; i < arrayList.length; i++) {
		let newObj = {};
		for (let j = 0; j < keyMap.length; j++) {
			let oldKey = keyMap[j][0];
			let newKey = keyMap[j][1];
			newObj[newKey] = arrayList[i][oldKey];
		}
		result.push(newObj);
	}

	return result;
}